這也是未來想用的功能,主要是希望有可視覺化的工具做效能改善。
首先下載 Tracy
cd vcpkg
vcpkg add port tracy[gui-tools]
根目錄專案的 CMakeLists 設定 SKYLINE_ENABLE_TRACY ,要用的時候開成 ON
# CMakeLists.txt
option(SKYLINE_ENABLE_TRACY "Enable Tracy CPU and D3D12 GPU profiling" OFF)
同時要用的程式寫類似這樣的內容
#ifdef SKYLINE_ENABLE_TRACY
TracyD3D12ZoneS(context.graphicsEngine.getProfiler().gpuContext(),
context.graphicsEngine.getCommandList(), "Common pass", 4);
#endif
因為這專案還沒很好的去切 Debugger 模式這類的設定,這邊就先直接從 .exe 去開啟 UI

最後開啟專案按 Connect 就能看相關資料了
